home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-09-01 | 7.4 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 64 63 70 2e 68 00 | 00 00 00 00 00 00 00 00 |..dcp.h.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 1a fc 00 | 00 01 ac aa 8c 3f 1b aa |........|.....?..|
|00000060| 8c 3f 1b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.?......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 98 83 00 00 |........|........|
|00000080| 2f 2a 20 44 43 50 20 61 | 20 75 75 63 70 20 63 6c |/* DCP a| uucp cl|
|00000090| 6f 6e 65 2e 20 43 6f 70 | 79 72 69 67 68 74 20 52 |one. Cop|yright R|
|000000a0| 69 63 68 61 72 64 20 48 | 2e 20 4c 61 6d 62 20 31 |ichard H|. Lamb 1|
|000000b0| 39 38 35 2c 31 39 38 36 | 2c 31 39 38 37 20 2a 2f |985,1986|,1987 */|
|000000c0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |.#includ|e <stdio|
|000000d0| 2e 68 3e 09 09 2f 2a 20 | 53 74 61 6e 64 61 72 64 |.h>../* |Standard|
|000000e0| 20 55 4e 49 58 20 20 64 | 65 66 69 6e 69 74 69 6f | UNIX d|efinitio|
|000000f0| 6e 73 20 2a 2f 0d 0d 23 | 69 6e 63 6c 75 64 65 20 |ns */..#|include |
|00000100| 22 68 6f 73 74 2e 68 22 | 09 09 2f 2a 20 48 6f 73 |"host.h"|../* Hos|
|00000110| 74 20 73 70 65 63 69 66 | 69 63 20 64 65 66 69 6e |t specif|ic defin|
|00000120| 69 74 69 6f 6e 73 20 2a | 2f 0d 23 69 6e 63 6c 75 |itions *|/.#inclu|
|00000130| 64 65 20 22 70 63 6d 61 | 69 6c 2e 68 22 09 09 2f |de "pcma|il.h"../|
|00000140| 2a 20 44 69 66 66 65 72 | 65 6e 74 69 61 74 65 73 |* Differ|entiates|
|00000150| 20 70 63 6d 61 69 6c 20 | 66 72 6f 6d 20 75 75 70 | pcmail |from uup|
|00000160| 63 20 2a 2f 0d 0d 0d 2f | 2a 20 46 49 4c 45 20 2a |c */.../|* FILE *|
|00000170| 20 46 4f 50 45 4e 28 29 | 3b 20 2a 2f 0d 2f 2a 20 | FOPEN()|; */./* |
|00000180| 69 6e 74 20 43 52 45 41 | 54 28 29 3b 20 2a 2f 0d |int CREA|T(); */.|
|00000190| 0d 23 64 65 66 69 6e 65 | 20 53 59 53 54 45 4d 53 |.#define| SYSTEMS|
|000001a0| 09 09 22 73 79 73 74 65 | 6d 73 22 0d 23 64 65 66 |.."syste|ms".#def|
|000001b0| 69 6e 65 20 4c 4f 47 46 | 49 4c 45 09 09 22 4c 4f |ine LOGF|ILE.."LO|
|000001c0| 47 46 49 4c 45 22 0d 23 | 64 65 66 69 6e 65 20 53 |GFILE".#|define S|
|000001d0| 59 53 4c 4f 47 09 09 22 | 53 59 53 4c 4f 47 22 0d |YSLOG.."|SYSLOG".|
|000001e0| 23 64 65 66 69 6e 65 20 | 53 43 48 45 44 55 4c 45 |#define |SCHEDULE|
|000001f0| 09 22 73 63 68 65 64 75 | 6c 65 22 0d 0d 23 64 65 |."schedu|le"..#de|
|00000200| 66 69 6e 65 20 4d 53 47 | 54 49 4d 45 20 20 20 20 |fine MSG|TIME |
|00000210| 20 20 20 20 20 32 30 0d | 23 64 65 66 69 6e 65 20 | 20.|#define |
|00000220| 4d 41 58 50 41 43 4b 20 | 20 20 20 20 20 20 20 20 |MAXPACK | |
|00000230| 34 30 39 36 0d 23 64 65 | 66 69 6e 65 20 4d 41 58 |4096.#de|fine MAX|
|00000240| 50 41 43 4b 43 4f 44 45 | 20 20 20 20 20 38 0d 23 |PACKCODE| 8.#|
|00000250| 64 65 66 69 6e 65 20 44 | 46 4c 50 41 43 4b 09 09 |define D|FLPACK..|
|00000260| 09 36 34 0d 0d 23 64 65 | 66 69 6e 65 20 50 4f 52 |.64..#de|fine POR|
|00000270| 54 42 55 46 53 49 5a 09 | 09 35 31 32 30 0d 23 64 |TBUFSIZ.|.5120.#d|
|00000280| 65 66 69 6e 65 20 43 4d | 44 42 55 46 53 49 5a 45 |efine CM|DBUFSIZE|
|00000290| 09 09 34 30 39 36 0d 0d | 23 64 65 66 69 6e 65 20 |..4096..|#define |
|000002a0| 4e 46 4c 44 53 09 09 09 | 36 30 0d 0d 23 64 65 66 |NFLDS...|60..#def|
|000002b0| 69 6e 65 20 4d 41 58 5f | 58 46 45 52 5f 52 45 54 |ine MAX_|XFER_RET|
|000002c0| 52 49 45 53 20 33 0d 0d | 23 64 65 66 69 6e 65 20 |RIES 3..|#define |
|000002d0| 45 52 52 4f 52 09 31 30 | 30 0d 23 64 65 66 69 6e |ERROR.10|0.#defin|
|000002e0| 65 20 45 4d 50 54 59 09 | 31 30 31 0d 0d 23 64 65 |e EMPTY.|101..#de|
|000002f0| 66 69 6e 65 09 53 4c 41 | 56 45 09 30 0d 23 64 65 |fine.SLA|VE.0.#de|
|00000300| 66 69 6e 65 09 4d 41 53 | 54 45 52 09 31 0d 0d 23 |fine.MAS|TER.1..#|
|00000310| 69 66 6e 64 65 66 20 54 | 52 55 45 0d 23 64 65 66 |ifndef T|RUE.#def|
|00000320| 69 6e 65 20 54 52 55 45 | 20 20 20 28 2d 31 29 0d |ine TRUE| (-1).|
|00000330| 23 64 65 66 69 6e 65 20 | 46 41 4c 53 45 20 20 20 |#define |FALSE |
|00000340| 30 0d 23 65 6e 64 69 66 | 0d 0d 2f 2a 23 64 65 66 |0.#endif|../*#def|
|00000350| 69 6e 65 20 53 41 4d 45 | 09 30 2a 2f 0d 23 64 65 |ine SAME|.0*/.#de|
|00000360| 66 69 6e 65 20 52 45 54 | 52 59 09 2d 32 0d 23 64 |fine RET|RY.-2.#d|
|00000370| 65 66 69 6e 65 20 46 41 | 49 4c 45 44 09 2d 31 0d |efine FA|ILED.-1.|
|00000380| 23 64 65 66 69 6e 65 20 | 4f 4b 09 09 30 0d 23 64 |#define |OK..0.#d|
|00000390| 65 66 69 6e 65 20 45 51 | 55 41 4c 09 30 0d 0d 0d |efine EQ|UAL.0...|
|000003a0| 2f 2a 20 4c 2e 73 79 73 | 20 66 69 65 6c 64 20 64 |/* L.sys| field d|
|000003b0| 65 66 69 6e 65 73 20 2a | 2f 0d 0d 23 64 65 66 69 |efines *|/..#defi|
|000003c0| 6e 65 09 46 4c 44 5f 52 | 45 4d 4f 54 45 09 30 0d |ne.FLD_R|EMOTE.0.|
|000003d0| 23 64 65 66 69 6e 65 09 | 46 4c 44 5f 43 43 54 49 |#define.|FLD_CCTI|
|000003e0| 4d 45 09 31 0d 23 64 65 | 66 69 6e 65 09 46 4c 44 |ME.1.#de|fine.FLD|
|000003f0| 5f 44 45 56 49 43 45 09 | 32 0d 23 64 65 66 69 6e |_DEVICE.|2.#defin|
|00000400| 65 09 46 4c 44 5f 54 59 | 50 45 09 33 0d 23 64 65 |e.FLD_TY|PE.3.#de|
|00000410| 66 69 6e 65 09 46 4c 44 | 5f 53 50 45 45 44 09 34 |fine.FLD|_SPEED.4|
|00000420| 0d 23 64 65 66 69 6e 65 | 09 46 4c 44 5f 50 48 4f |.#define|.FLD_PHO|
|00000430| 4e 45 09 35 0d 23 64 65 | 66 69 6e 65 09 46 4c 44 |NE.5.#de|fine.FLD|
|00000440| 5f 50 52 4f 54 4f 09 36 | 0d 23 64 65 66 69 6e 65 |_PROTO.6|.#define|
|00000450| 09 46 4c 44 5f 45 58 50 | 45 43 54 09 37 0d 23 64 |.FLD_EXP|ECT.7.#d|
|00000460| 65 66 69 6e 65 20 46 4c | 44 5f 53 45 4e 44 09 38 |efine FL|D_SEND.8|
|00000470| 0d 0d 2f 2a 2a 2f 0d 74 | 79 70 65 64 65 66 20 69 |../**/.t|ypedef i|
|00000480| 6e 74 09 28 2a 70 72 6f | 63 72 65 66 29 28 29 3b |nt.(*pro|cref)();|
|00000490| 0d 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|000004a0| 20 7b 0d 09 63 68 61 72 | 09 74 79 70 65 3b 0d 09 | {..char|.type;..|
|000004b0| 70 72 6f 63 72 65 66 20 | 61 3b 0d 09 70 72 6f 63 |procref |a;..proc|
|000004c0| 72 65 66 20 62 3b 0d 09 | 70 72 6f 63 72 65 66 20 |ref b;..|procref |
|000004d0| 63 3b 0d 09 70 72 6f 63 | 72 65 66 20 64 3b 0d 09 |c;..proc|ref d;..|
|000004e0| 70 72 6f 63 72 65 66 20 | 65 3b 0d 09 70 72 6f 63 |procref |e;..proc|
|000004f0| 72 65 66 20 66 3b 0d 09 | 70 72 6f 63 72 65 66 20 |ref f;..|procref |
|00000500| 67 3b 0d 09 70 72 6f 63 | 72 65 66 20 68 3b 0d 09 |g;..proc|ref h;..|
|00000510| 70 72 6f 63 72 65 66 20 | 69 3b 0d 7d 20 50 72 6f |procref |i;.} Pro|
|00000520| 74 6f 3b 0d 0d 2f 2a 20 | 74 68 65 20 76 61 72 69 |to;../* |the vari|
|00000530| 6f 75 73 20 70 72 6f 74 | 6f 63 6f 6c 73 20 61 76 |ous prot|ocols av|
|00000540| 61 69 6c 61 62 6c 65 2e | 20 41 64 64 20 68 65 72 |ailable.| Add her|
|00000550| 65 20 66 6f 72 20 6f 74 | 68 65 72 73 20 2a 2f 0d |e for ot|hers */.|
|00000560| 65 78 74 65 72 6e 20 70 | 72 6f 63 72 65 66 20 20 |extern p|rocref |
|00000570| 20 20 20 20 20 20 20 20 | 67 65 74 70 6b 74 2c 20 | |getpkt, |
|00000580| 73 65 6e 64 70 6b 74 2c | 20 6f 70 65 6e 70 6b 2c |sendpkt,| openpk,|
|00000590| 20 63 6c 6f 73 65 70 6b | 2c 20 66 69 6c 65 70 6b | closepk|, filepk|
|000005a0| 74 2c 20 65 6f 66 70 6b | 74 2c 0d 09 09 09 09 09 |t, eofpk|t,......|
|000005b0| 09 67 65 74 6d 73 67 2c | 20 73 65 6e 64 6d 73 67 |.getmsg,| sendmsg|
|000005c0| 2c 20 73 65 6e 64 72 65 | 73 70 3b 0d 0d 65 78 74 |, sendre|sp;..ext|
|000005d0| 65 72 6e 20 69 6e 74 09 | 67 67 65 74 70 6b 74 28 |ern int.|ggetpkt(|
|000005e0| 29 2c 20 67 73 65 6e 64 | 70 6b 74 28 29 2c 20 67 |), gsend|pkt(), g|
|000005f0| 6f 70 65 6e 70 6b 28 29 | 2c 20 67 63 6c 6f 73 65 |openpk()|, gclose|
|00000600| 70 6b 28 29 2c 20 67 66 | 69 6c 65 70 6b 74 28 29 |pk(), gf|ilepkt()|
|00000610| 2c 20 67 65 6f 66 70 6b | 74 28 29 2c 0d 09 09 09 |, geofpk|t(),....|
|00000620| 09 09 09 67 77 72 6d 73 | 67 28 29 2c 20 67 72 64 |...gwrms|g(), grd|
|00000630| 6d 73 67 28 29 2c 20 67 | 73 65 6e 64 72 65 73 70 |msg(), g|sendresp|
|00000640| 28 29 3b 0d 65 78 74 65 | 72 6e 20 69 6e 74 09 66 |();.exte|rn int.f|
|00000650| 67 65 74 70 6b 74 28 29 | 2c 20 66 73 65 6e 64 70 |getpkt()|, fsendp|
|00000660| 6b 74 28 29 2c 20 66 6f | 70 65 6e 70 6b 28 29 2c |kt(), fo|penpk(),|
|00000670| 20 66 63 6c 6f 73 65 70 | 6b 28 29 2c 20 66 66 69 | fclosep|k(), ffi|
|00000680| 6c 65 70 6b 74 28 29 2c | 20 66 65 6f 66 70 6b 74 |lepkt(),| feofpkt|
|00000690| 28 29 2c 0d 09 09 09 09 | 09 09 66 77 72 6d 73 67 |(),.....|..fwrmsg|
|000006a0| 28 29 2c 20 66 72 64 6d | 73 67 28 29 2c 20 66 73 |(), frdm|sg(), fs|
|000006b0| 65 6e 64 72 65 73 70 28 | 29 3b 0d 2f 2a 0d 65 78 |endresp(|);./*.ex|
|000006c0| 74 65 72 6e 20 69 6e 74 | 09 6b 67 65 74 70 6b 74 |tern int|.kgetpkt|
|000006d0| 28 29 2c 20 6b 73 65 6e | 64 70 6b 74 28 29 2c 20 |(), ksen|dpkt(), |
|000006e0| 6b 6f 70 65 6e 70 6b 28 | 29 2c 20 6b 63 6c 6f 73 |kopenpk(|), kclos|
|000006f0| 65 70 6b 28 29 3b 0d 65 | 78 74 65 72 6e 20 69 6e |epk();.e|xtern in|
|00000700| 74 09 72 67 65 74 70 6b | 74 28 29 2c 20 72 73 65 |t.rgetpk|t(), rse|
|00000710| 6e 64 70 6b 74 28 29 2c | 20 72 6f 70 65 6e 70 6b |ndpkt(),| ropenpk|
|00000720| 28 29 2c 20 72 63 6c 6f | 73 65 70 6b 28 29 3b 0d |(), rclo|sepk();.|
|00000730| 65 78 74 65 72 6e 20 69 | 6e 74 09 74 67 65 74 70 |extern i|nt.tgetp|
|00000740| 6b 74 28 29 2c 20 74 73 | 65 6e 64 70 6b 74 28 29 |kt(), ts|endpkt()|
|00000750| 2c 20 74 6f 70 65 6e 70 | 6b 28 29 2c 20 74 63 6c |, topenp|k(), tcl|
|00000760| 6f 73 65 70 6b 28 29 3b | 0d 2a 2f 0d 0d 74 79 70 |osepk();|.*/..typ|
|00000770| 65 64 65 66 20 65 6e 75 | 6d 0d 20 20 20 20 20 20 |edef enu|m. |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 7b 20 70 68 61 6e | | { phan|
|00000790| 74 6f 6d 2c 20 20 20 20 | 20 20 20 20 20 20 2f 2a |tom, | /*|
|000007a0| 20 45 6e 74 72 79 20 6e | 6f 74 20 66 75 6c 6c 79 | Entry n|ot fully|
|000007b0| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 20 20 20 20 | initial|ized |
|000007c0| 20 20 2a 2f 0d 20 20 20 | 20 20 20 20 20 20 20 20 | */. | |
|000007d0| 20 20 20 20 20 20 20 6c | 6f 63 61 6c 68 6f 73 74 | l|ocalhost|
|000007e0| 2c 20 20 20 20 20 20 20 | 20 2f 2a 20 54 68 69 73 |, | /* This|
|000007f0| 20 65 6e 74 72 79 20 69 | 73 20 66 6f 72 20 6f 75 | entry i|s for ou|
|00000800| 72 73 65 6c 76 65 73 20 | 20 20 20 20 20 2a 2f 0d |rselves | */.|
|00000810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000820| 20 20 72 6f 75 74 65 64 | 2c 20 20 20 20 20 20 20 | routed|, |
|00000830| 20 20 20 20 2f 2a 20 54 | 68 69 73 20 65 6e 74 72 | /* T|his entr|
|00000840| 79 20 69 73 20 61 63 74 | 75 61 6c 6c 79 20 61 20 |y is act|ually a |
|00000850| 70 61 74 68 20 20 20 20 | 2a 2f 0d 20 20 20 20 20 |path |*/. |
|00000860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 67 61 74 | | gat|
|00000870| 65 77 61 79 65 64 2c 20 | 20 20 20 20 20 20 20 2f |ewayed, | /|
|00000880| 2a 20 54 68 69 73 20 65 | 6e 74 72 79 20 69 73 20 |* This e|ntry is |
|00000890| 64 65 6c 69 76 65 72 65 | 64 20 74 6f 20 76 69 61 |delivere|d to via|
|000008a0| 20 20 20 2a 2f 0d 20 20 | 20 20 20 20 20 20 20 20 | */. | |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008c0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 61 6e 20 | | /* an |
|000008d0| 65 78 74 65 72 6e 61 6c | 20 70 72 6f 67 72 61 6d |external| program|
|000008e0| 20 6f 6e 20 6c 6f 63 61 | 6c 20 73 79 73 20 2a 2f | on loca|l sys */|
|000008f0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000900| 20 20 20 61 6c 69 61 73 | 6f 66 2c 20 20 20 20 20 | alias|of, |
|00000910| 20 20 20 20 20 2f 2a 20 | 54 68 69 73 20 65 6e 74 | /* |This ent|
|00000920| 72 79 20 69 73 20 61 6c | 69 61 73 20 6f 66 20 56 |ry is al|ias of V|
|00000930| 49 41 20 73 79 73 74 65 | 6d 2a 2f 0d 20 20 20 20 |IA syste|m*/. |
|00000940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6e 6f | | no|
|00000950| 63 61 6c 6c 2c 20 20 20 | 20 20 20 20 20 20 20 20 |call, | |
|00000960| 2f 2a 20 72 65 61 6c 20 | 68 6f 73 74 2c 20 6e 65 |/* real |host, ne|
|00000970| 76 65 72 20 63 61 6c 6c | 65 64 20 20 20 20 20 20 |ver call|ed |
|00000980| 20 20 20 20 2a 2f 0d 20 | 20 20 20 20 20 20 20 20 | */. | |
|00000990| 20 20 20 20 20 20 20 20 | 20 69 6e 70 72 6f 67 72 | | inprogr|
|000009a0| 65 73 73 2c 20 20 20 20 | 20 20 20 2f 2a 20 43 61 |ess, | /* Ca|
|000009b0| 6c 6c 20 6e 6f 77 20 61 | 63 74 69 76 65 20 20 20 |ll now a|ctive |
|000009c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|000009d0| 2f 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/. | |
|000009e0| 20 20 20 20 63 61 6c 6c | 62 61 63 6b 5f 72 65 71 | call|back_req|
|000009f0| 2c 20 20 20 20 20 2f 2a | 20 53 79 73 74 65 6d 20 |, /*| System |
|00000a00| 6d 75 73 74 20 63 61 6c | 6c 20 75 73 20 62 61 63 |must cal|l us bac|
|00000a10| 6b 20 20 20 20 20 20 20 | 20 20 2a 2f 0d 20 20 20 |k | */. |
|00000a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00000a30| 69 61 6c 5f 66 61 69 6c | 65 64 2c 20 20 20 20 20 |ial_fail|ed, |
|00000a40| 20 2f 2a 20 48 61 72 64 | 63 6f 64 65 64 20 61 75 | /* Hard|coded au|
|00000a50| 74 6f 2d 64 69 61 6c 20 | 66 61 69 6c 65 64 20 20 |to-dial |failed |
|00000a60| 20 20 20 20 20 2a 2f 0d | 20 20 20 20 20 20 20 20 | */.| |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 73 63 72 69 70 74 | | script|
|00000a80| 5f 66 61 69 6c 65 64 2c | 20 20 20 20 2f 2a 20 73 |_failed,| /* s|
|00000a90| 63 72 69 70 74 20 69 6e | 20 4c 2e 53 59 53 20 66 |cript in| L.SYS f|
|00000aa0| 61 69 6c 65 64 20 20 20 | 20 20 20 20 20 20 20 20 |ailed | |
|00000ab0| 2a 2f 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |*/. | |
|00000ac0| 20 20 20 20 20 6d 61 78 | 5f 72 65 74 72 79 2c 20 | max|_retry, |
|00000ad0| 20 20 20 20 20 20 20 2f | 2a 20 48 61 76 65 20 67 | /|* Have g|
|00000ae0| 69 76 65 6e 20 75 70 20 | 63 61 6c 6c 69 6e 67 20 |iven up |calling |
|00000af0| 74 68 69 73 20 73 79 73 | 20 20 20 2a 2f 0d 20 20 |this sys| */. |
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b10| 74 6f 6f 5f 73 6f 6f 6e | 2c 20 20 20 20 20 20 20 |too_soon|, |
|00000b20| 20 20 2f 2a 20 49 6e 20 | 72 65 74 72 79 20 6d 6f | /* In |retry mo|
|00000b30| 64 65 2c 20 74 6f 6f 20 | 73 6f 6f 6e 20 74 6f 20 |de, too |soon to |
|00000b40| 63 61 6c 6c 20 20 2a 2f | 0d 20 20 20 20 20 20 20 |call */|. |
|00000b50| 20 20 20 20 20 20 20 20 | 20 20 20 73 75 63 63 65 | | succe|
|00000b60| 65 64 65 64 2c 20 20 20 | 20 20 20 20 20 2f 2a 20 |eded, | /* |
|00000b70| 73 65 6c 66 2d 65 78 70 | 6c 61 6e 61 74 6f 72 79 |self-exp|lanatory|
|00000b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b90| 20 2a 2f 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | */. | |
|00000ba0| 20 20 20 20 20 20 77 72 | 6f 6e 67 5f 68 6f 73 74 | wr|ong_host|
|00000bb0| 2c 20 20 20 20 20 20 20 | 2f 2a 20 43 61 6c 6c 20 |, |/* Call |
|00000bc0| 6f 75 74 20 66 61 69 6c | 65 64 2c 20 77 72 6f 6e |out fail|ed, wron|
|00000bd0| 67 20 73 79 73 74 65 6d | 20 20 20 20 2a 2f 0d 20 |g system| */. |
|00000be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bf0| 20 75 6e 6b 6e 6f 77 6e | 5f 68 6f 73 74 2c 20 20 | unknown|_host, |
|00000c00| 20 20 20 2f 2a 20 43 61 | 6c 6c 20 69 6e 20 63 61 | /* Ca|ll in ca|
|00000c10| 69 6c 65 64 2c 20 75 6e | 6b 6e 6f 77 6e 20 73 79 |iled, un|known sy|
|00000c20| 73 74 65 6d 20 20 20 2a | 2f 0d 20 20 20 20 20 20 |stem *|/. |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 77 72 6f 6e | | wron|
|00000c40| 67 5f 74 69 6d 65 2c 20 | 20 20 20 20 20 20 2f 2a |g_time, | /*|
|00000c50| 20 55 6e 61 62 6c 65 20 | 74 6f 20 63 61 6c 6c 20 | Unable |to call |
|00000c60| 62 65 63 61 75 73 65 20 | 6f 66 20 74 69 6d 65 20 |because |of time |
|00000c70| 20 20 2a 2f 0d 20 20 20 | 20 20 20 20 20 20 20 20 | */. | |
|00000c80| 20 20 20 20 20 20 20 6c | 61 73 74 5f 73 74 61 74 | l|ast_stat|
|00000c90| 75 73 20 7d 0d 20 20 20 | 20 20 20 20 20 20 20 20 |us }. | |
|00000ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 68 6f 73 | | hos|
|00000cb0| 74 61 74 75 73 3b 0d 0d | 73 74 72 75 63 74 20 48 |tatus;..|struct H|
|00000cc0| 6f 73 74 53 74 61 74 73 | 20 7b 0d 20 20 20 20 20 |ostStats| {. |
|00000cd0| 20 74 69 6d 65 5f 74 20 | 6c 74 69 6d 65 3b 20 20 | time_t |ltime; |
|00000ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 4c | | /* L|
|00000cf0| 61 73 74 20 74 69 6d 65 | 20 74 68 69 73 20 68 6f |ast time| this ho|
|00000d00| 73 74 20 77 61 73 20 63 | 61 6c 6c 65 64 20 20 20 |st was c|alled |
|00000d10| 20 20 20 2a 2f 0d 20 20 | 20 20 20 20 74 69 6d 65 | */. | time|
|00000d20| 5f 74 20 6c 63 6f 6e 6e | 65 63 74 3b 20 20 20 20 |_t lconn|ect; |
|00000d30| 20 20 20 20 20 20 20 2f | 2a 20 4c 61 73 74 20 74 | /|* Last t|
|00000d40| 69 6d 65 20 77 65 20 61 | 63 74 75 61 6c 6c 79 20 |ime we a|ctually |
|00000d50| 63 6f 6e 6e 65 63 74 65 | 64 20 20 20 20 20 2a 2f |connecte|d */|
|00000d60| 0d 20 20 20 20 20 20 75 | 6e 73 69 67 6e 65 64 20 |. u|nsigned |
|00000d70| 6c 6f 6e 67 20 63 61 6c | 6c 73 3b 20 20 20 20 20 |long cal|ls; |
|00000d80| 20 20 2f 2a 20 54 6f 74 | 61 6c 20 6e 75 6d 62 65 | /* Tot|al numbe|
|00000d90| 72 20 6f 66 20 63 61 6c | 6c 73 20 74 6f 20 68 6f |r of cal|ls to ho|
|00000da0| 73 74 20 20 20 20 20 20 | 20 2a 2f 0d 20 20 20 20 |st | */. |
|00000db0| 20 20 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 | unsign|ed long |
|00000dc0| 63 6f 6e 6e 65 63 74 3b | 20 20 20 20 20 2f 2a 20 |connect;| /* |
|00000dd0| 54 6f 74 61 6c 20 6c 65 | 6e 67 74 68 20 6f 66 20 |Total le|ngth of |
|00000de0| 63 6f 6e 6e 65 63 74 69 | 6f 6e 73 20 74 6f 20 68 |connecti|ons to h|
|00000df0| 6f 73 74 20 2a 2f 0d 20 | 20 20 20 20 20 75 6e 73 |ost */. | uns|
|00000e00| 69 67 6e 65 64 20 6c 6f | 6e 67 20 66 73 65 6e 74 |igned lo|ng fsent|
|00000e10| 3b 20 20 20 20 20 20 20 | 2f 2a 20 54 6f 74 61 6c |; |/* Total|
|00000e20| 20 66 69 6c 65 73 20 73 | 65 6e 74 20 74 6f 20 74 | files s|ent to t|
|00000e30| 68 69 73 20 68 6f 73 74 | 20 20 20 20 20 20 20 2a |his host| *|
|00000e40| 2f 0d 20 20 20 20 20 20 | 75 6e 73 69 67 6e 65 64 |/. |unsigned|
|00000e50| 20 6c 6f 6e 67 20 66 72 | 65 63 65 69 76 65 64 3b | long fr|eceived;|
|00000e60| 20 20 20 2f 2a 20 54 6f | 74 61 6c 20 66 69 6c 65 | /* To|tal file|
|00000e70| 73 20 72 65 63 65 69 76 | 65 64 20 66 72 6f 6d 20 |s receiv|ed from |
|00000e80| 74 68 69 73 20 68 6f 73 | 74 20 2a 2f 0d 20 20 20 |this hos|t */. |
|00000e90| 20 20 20 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 | unsig|ned long|
|00000ea0| 20 62 73 65 6e 74 3b 20 | 20 20 20 20 20 20 2f 2a | bsent; | /*|
|00000eb0| 20 54 6f 74 61 6c 20 62 | 79 74 65 73 20 73 65 6e | Total b|ytes sen|
|00000ec0| 74 20 74 6f 20 74 68 69 | 73 20 68 6f 73 74 20 20 |t to thi|s host |
|00000ed0| 20 20 20 20 20 2a 2f 0d | 20 20 20 20 20 20 75 6e | */.| un|
|00000ee0| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 62 72 65 63 |signed l|ong brec|
|00000ef0| 65 69 76 65 64 3b 20 20 | 20 2f 2a 20 54 6f 74 61 |eived; | /* Tota|
|00000f00| 6c 20 62 79 74 65 73 20 | 72 65 63 65 69 76 65 64 |l bytes |received|
|00000f10| 20 66 72 6f 6d 20 74 68 | 69 73 20 68 6f 73 74 20 | from th|is host |
|00000f20| 2a 2f 0d 20 20 20 20 20 | 20 75 6e 73 69 67 6e 65 |*/. | unsigne|
|00000f30| 64 20 6c 6f 6e 67 20 65 | 72 72 6f 72 73 3b 20 20 |d long e|rrors; |
|00000f40| 20 20 20 20 2f 2a 20 54 | 6f 74 61 6c 20 74 72 61 | /* T|otal tra|
|00000f50| 6e 73 6d 69 73 73 69 6f | 6e 20 65 72 72 6f 72 73 |nsmissio|n errors|
|00000f60| 20 6e 6f 74 65 64 20 20 | 20 20 20 2a 2f 0d 20 20 | noted | */. |
|00000f70| 20 20 20 20 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e | unsi|gned lon|
|00000f80| 67 20 70 61 63 6b 65 74 | 73 3b 20 20 20 20 20 2f |g packet|s; /|
|00000f90| 2a 20 54 6f 74 61 6c 20 | 70 61 63 6b 65 74 73 20 |* Total |packets |
|00000fa0| 65 78 63 68 61 6e 67 65 | 64 20 20 20 20 20 20 20 |exchange|d |
|00000fb0| 20 20 20 20 20 20 2a 2f | 0d 20 20 20 20 20 20 75 | */|. u|
|00000fc0| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 62 73 74 |nsigned |long bst|
|00000fd0| 61 72 74 3b 20 20 20 20 | 20 20 2f 2a 20 42 79 74 |art; | /* Byt|
|00000fe0| 65 73 20 73 65 6e 74 2f | 72 63 76 64 20 61 74 20 |es sent/|rcvd at |
|00000ff0| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 66 69 6c |beginnin|g of fil|
|00001000| 65 2a 2f 0d 20 20 20 20 | 20 20 68 6f 73 74 61 74 |e*/. | hostat|
|00001010| 75 73 20 73 61 76 65 5f | 68 73 74 61 74 75 73 3b |us save_|hstatus;|
|00001020| 20 20 20 20 20 2f 2a 20 | 68 6f 73 74 20 73 74 61 | /* |host sta|
|00001030| 74 75 73 2c 20 61 73 20 | 64 65 66 69 6e 65 64 20 |tus, as |defined |
|00001040| 62 79 20 68 6f 73 74 61 | 74 75 73 20 2a 2f 0d 20 |by hosta|tus */. |
|00001050| 20 20 7d 3b 0d 0d 74 79 | 70 65 64 65 66 20 73 74 | };..ty|pedef st|
|00001060| 72 75 63 74 20 7b 0d 09 | 74 69 6d 65 5f 74 20 74 |ruct {..|time_t t|
|00001070| 69 6d 65 5f 73 65 63 73 | 3b 0d 09 63 68 61 72 20 |ime_secs|;..char |
|00001080| 20 20 6e 61 6d 65 5b 34 | 30 5d 3b 0d 09 63 68 61 | name[4|0];..cha|
|00001090| 72 20 20 20 73 74 61 74 | 75 73 5b 34 30 5d 3b 0d |r stat|us[40];.|
|000010a0| 09 69 6e 74 20 20 20 20 | 66 61 69 6c 75 72 65 73 |.int |failures|
|000010b0| 3b 0d 7d 20 73 74 61 74 | 75 73 5f 72 65 63 6f 72 |;.} stat|us_recor|
|000010c0| 64 3b 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |d;..type|def stru|
|000010d0| 63 74 20 7b 0d 09 69 6e | 74 20 28 2a 49 6e 69 74 |ct {..in|t (*Init|
|000010e0| 29 20 28 63 68 61 72 20 | 2a 20 77 68 69 63 68 70 |) (char |* whichp|
|000010f0| 6f 72 74 2c 20 63 68 61 | 72 20 2a 20 73 70 65 65 |ort, cha|r * spee|
|00001100| 64 2c 20 63 68 61 72 20 | 2a 20 70 68 6f 6e 65 29 |d, char |* phone)|
|00001110| 3b 0d 09 69 6e 74 20 28 | 2a 49 6e 42 75 66 66 65 |;..int (|*InBuffe|
|00001120| 72 29 20 28 63 68 61 72 | 20 2a 20 62 75 66 2c 20 |r) (char| * buf, |
|00001130| 69 6e 74 20 73 69 7a 65 | 29 3b 0d 09 69 6e 74 20 |int size|);..int |
|00001140| 28 2a 4f 75 74 42 75 66 | 66 65 72 29 20 28 63 68 |(*OutBuf|fer) (ch|
|00001150| 61 72 20 2a 20 62 75 66 | 2c 20 69 6e 74 20 73 69 |ar * buf|, int si|
|00001160| 7a 65 29 3b 0d 09 69 6e | 74 20 28 2a 53 70 65 65 |ze);..in|t (*Spee|
|00001170| 64 29 20 28 63 68 61 72 | 20 2a 73 70 65 65 64 29 |d) (char| *speed)|
|00001180| 3b 0d 09 69 6e 74 20 28 | 2a 48 61 6e 64 73 68 61 |;..int (|*Handsha|
|00001190| 6b 65 29 20 28 69 6e 74 | 20 66 49 6e 78 2c 20 69 |ke) (int| fInx, i|
|000011a0| 6e 74 20 66 58 4f 6e 2c | 20 69 6e 74 20 66 43 54 |nt fXOn,| int fCT|
|000011b0| 53 2c 20 69 6e 74 20 78 | 4f 6e 2c 20 69 6e 74 20 |S, int x|On, int |
|000011c0| 78 4f 66 66 29 3b 0d 09 | 69 6e 74 20 28 2a 53 65 |xOff);..|int (*Se|
|000011d0| 74 74 69 6e 67 29 20 28 | 63 68 61 72 20 2a 73 70 |tting) (|char *sp|
|000011e0| 65 65 64 2c 20 69 6e 74 | 20 70 61 72 69 74 79 2c |eed, int| parity,|
|000011f0| 20 69 6e 74 20 73 74 6f | 70 62 69 74 73 2c 20 69 | int sto|pbits, i|
|00001200| 6e 74 20 64 61 74 61 62 | 69 74 73 29 3b 0d 09 69 |nt datab|its);..i|
|00001210| 6e 74 20 28 2a 43 6c 6f | 73 65 29 20 28 69 6e 74 |nt (*Clo|se) (int|
|00001220| 20 64 74 72 29 3b 0d 09 | 69 6e 74 20 28 2a 53 65 | dtr);..|int (*Se|
|00001230| 74 46 6c 6f 77 43 74 6c | 29 20 28 69 6e 74 20 73 |tFlowCtl|) (int s|
|00001240| 6f 66 74 77 61 72 65 2c | 20 69 6e 74 20 68 61 72 |oftware,| int har|
|00001250| 64 77 61 72 65 29 3b 0d | 09 69 6e 74 20 28 2a 41 |dware);.|.int (*A|
|00001260| 6c 6c 6f 77 49 6e 74 65 | 72 72 75 70 74 73 29 20 |llowInte|rrupts) |
|00001270| 28 69 6e 74 20 66 6c 61 | 67 29 3b 0d 09 69 6e 74 |(int fla|g);..int|
|00001280| 20 28 2a 49 6e 74 65 72 | 72 75 70 74 29 20 28 76 | (*Inter|rupt) (v|
|00001290| 6f 69 64 29 3b 0d 09 69 | 6e 74 20 28 2a 50 75 72 |oid);..i|nt (*Pur|
|000012a0| 67 65 29 20 28 76 6f 69 | 64 29 3b 0d 09 69 6e 74 |ge) (voi|d);..int|
|000012b0| 20 28 2a 50 75 74 43 68 | 61 72 29 20 28 63 68 61 | (*PutCh|ar) (cha|
|000012c0| 72 20 63 68 29 3b 0d 09 | 69 6e 74 20 28 2a 57 72 |r ch);..|int (*Wr|
|000012d0| 69 74 65 29 20 28 63 68 | 61 72 20 2a 62 75 66 2c |ite) (ch|ar *buf,|
|000012e0| 20 69 6e 74 20 63 6f 75 | 6e 74 29 3b 0d 09 69 6e | int cou|nt);..in|
|000012f0| 74 20 28 2a 41 76 61 69 | 6c 29 20 28 76 6f 69 64 |t (*Avai|l) (void|
|00001300| 29 3b 0d 09 69 6e 74 20 | 28 2a 57 53 74 72 29 20 |);..int |(*WStr) |
|00001310| 28 63 68 61 72 20 2a 73 | 74 29 3b 0d 09 69 6e 74 |(char *s|t);..int|
|00001320| 20 28 2a 52 65 61 64 29 | 20 28 63 68 61 72 20 2a | (*Read)| (char *|
|00001330| 62 79 74 2c 20 69 6e 74 | 20 6d 69 6e 63 6f 75 6e |byt, int| mincoun|
|00001340| 74 2c 20 69 6e 74 20 6d | 61 78 63 6f 75 6e 74 2c |t, int m|axcount,|
|00001350| 20 6c 6f 6e 67 20 69 6e | 74 20 74 65 6e 74 68 73 | long in|t tenths|
|00001360| 29 3b 0d 09 69 6e 74 20 | 28 2a 49 64 6c 65 29 20 |);..int |(*Idle) |
|00001370| 28 76 6f 69 64 29 3b 0d | 09 69 6e 74 20 28 2a 45 |(void);.|.int (*E|
|00001380| 76 65 6e 74 29 20 28 45 | 76 65 6e 74 52 65 63 6f |vent) (E|ventReco|
|00001390| 72 64 20 2a 61 6e 45 76 | 65 6e 74 29 3b 0d 09 69 |rd *anEv|ent);..i|
|000013a0| 6e 74 20 28 2a 42 72 65 | 61 6b 29 20 28 69 6e 74 |nt (*Bre|ak) (int|
|000013b0| 20 74 65 6e 74 68 73 29 | 3b 0d 09 69 6e 74 20 28 | tenths)|;..int (|
|000013c0| 2a 53 65 74 50 61 72 69 | 74 79 29 20 28 69 6e 74 |*SetPari|ty) (int|
|000013d0| 20 64 61 74 61 42 69 74 | 73 2c 20 69 6e 74 20 70 | dataBit|s, int p|
|000013e0| 61 72 69 74 79 43 6f 64 | 65 29 3b 0d 7d 20 43 6f |arityCod|e);.} Co|
|000013f0| 6e 6e 65 63 74 69 6f 6e | 48 61 6e 64 6c 65 72 3b |nnection|Handler;|
|00001400| 0d 0d 2f 2a 2a 2f 0d 65 | 78 74 65 72 6e 20 69 6e |../**/.e|xtern in|
|00001410| 74 09 70 6b 74 73 69 7a | 65 3b 20 20 20 20 20 20 |t.pktsiz|e; |
|00001420| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 70 61 63 | | /* pac|
|00001430| 6b 65 74 20 73 69 7a 65 | 20 66 6f 72 20 74 68 69 |ket size| for thi|
|00001440| 73 20 70 72 6f 2a 2f 0d | 65 78 74 65 72 6e 20 46 |s pro*/.|extern F|
|00001450| 49 4c 45 09 2a 6c 6f 67 | 66 69 6c 65 3b 20 20 20 |ILE.*log|file; |
|00001460| 20 20 20 20 20 20 20 20 | 20 09 2f 2a 20 73 79 73 | | ./* sys|
|00001470| 74 65 6d 20 6c 6f 67 20 | 66 69 6c 65 20 2a 2f 0d |tem log |file */.|
|00001480| 65 78 74 65 72 6e 20 46 | 49 4c 45 09 2a 73 79 73 |extern F|ILE.*sys|
|00001490| 6c 6f 67 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |log; | |
|000014a0| 09 2f 2a 20 73 79 73 74 | 65 6d 20 6c 6f 67 20 66 |./* syst|em log f|
|000014b0| 69 6c 65 20 2a 2f 0d 65 | 78 74 65 72 6e 20 46 49 |ile */.e|xtern FI|
|000014c0| 4c 45 09 2a 66 77 3b 20 | 20 20 20 20 20 20 20 20 |LE.*fw; | |
|000014d0| 20 20 09 09 2f 2a 20 63 | 66 69 6c 65 20 70 6f 69 | ../* c|file poi|
|000014e0| 6e 74 65 72 20 2a 2f 0d | 65 78 74 65 72 6e 20 63 |nter */.|extern c|
|000014f0| 68 61 72 09 63 66 69 6c | 65 5b 38 30 5d 3b 20 20 |har.cfil|e[80]; |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 77 | | /* w|
|00001510| 6f 72 6b 20 66 69 6c 65 | 20 70 6f 69 6e 74 65 72 |ork file| pointer|
|00001520| 20 2a 2f 0d 65 78 74 65 | 72 6e 20 69 6e 74 09 72 | */.exte|rn int.r|
|00001530| 65 6d 6f 74 65 3b 20 20 | 20 20 20 20 20 20 20 20 |emote; | |
|00001540| 20 20 20 20 20 20 20 2f | 2a 20 2d 31 20 6d 65 61 | /|* -1 mea|
|00001550| 6e 73 20 77 65 27 72 65 | 20 72 65 6d 6f 74 65 2a |ns we're| remote*|
|00001560| 2f 0d 65 78 74 65 72 6e | 20 69 6e 74 20 6d 61 78 |/.extern| int max|
|00001570| 68 6f 70 73 3b 0d 65 78 | 74 65 72 6e 20 69 6e 74 |hops;.ex|tern int|
|00001580| 20 73 79 6e 63 5f 74 69 | 6d 65 6f 75 74 3b 0d 65 | sync_ti|meout;.e|
|00001590| 78 74 65 72 6e 20 69 6e | 74 20 78 66 65 72 5f 72 |xtern in|t xfer_r|
|000015a0| 65 74 72 69 65 73 5f 6c | 65 66 74 3b 0d 65 78 74 |etries_l|eft;.ext|
|000015b0| 65 72 6e 20 69 6e 74 20 | 50 61 63 6b 65 74 54 69 |ern int |PacketTi|
|000015c0| 6d 65 6f 75 74 3b 0d 65 | 78 74 65 72 6e 20 69 6e |meout;.e|xtern in|
|000015d0| 74 20 4d 61 78 45 72 72 | 3b 0d 65 78 74 65 72 6e |t MaxErr|;.extern|
|000015e0| 20 69 6e 74 20 6d 73 67 | 74 69 6d 65 3b 0d 65 78 | int msg|time;.ex|
|000015f0| 74 65 72 6e 20 69 6e 74 | 20 70 6b 74 73 69 7a 65 |tern int| pktsize|
|00001600| 3b 20 20 20 20 20 20 20 | 20 20 2f 2a 20 70 61 63 |; | /* pac|
|00001610| 6b 65 74 20 73 69 7a 65 | 20 66 6f 72 20 74 68 69 |ket size| for thi|
|00001620| 73 20 70 72 6f 74 6f 63 | 6f 6c 2a 2f 0d 65 78 74 |s protoc|ol*/.ext|
|00001630| 65 72 6e 20 69 6e 74 20 | 78 66 65 72 5f 62 75 66 |ern int |xfer_buf|
|00001640| 73 69 7a 65 3b 0d 65 78 | 74 65 72 6e 20 69 6e 74 |size;.ex|tern int|
|00001650| 09 66 69 6e 64 77 6f 72 | 6b 3b 0d 65 78 74 65 72 |.findwor|k;.exter|
|00001660| 6e 20 69 6e 74 20 78 66 | 65 72 5f 70 72 6f 62 6c |n int xf|er_probl|
|00001670| 65 6d 73 3b 0d 65 78 74 | 65 72 6e 20 69 6e 74 09 |ems;.ext|ern int.|
|00001680| 64 65 6c 5f 66 69 6c 65 | 5f 66 6c 61 67 3b 0d 65 |del_file|_flag;.e|
|00001690| 78 74 65 72 6e 20 63 68 | 61 72 09 66 72 6f 6d 66 |xtern ch|ar.fromf|
|000016a0| 69 6c 65 5b 31 33 32 5d | 3b 0d 65 78 74 65 72 6e |ile[132]|;.extern|
|000016b0| 20 63 68 61 72 09 72 6d | 74 66 6e 61 6d 65 5b 31 | char.rm|tfname[1|
|000016c0| 33 32 5d 3b 0d 65 78 74 | 65 72 6e 20 63 68 61 72 |32];.ext|ern char|
|000016d0| 09 68 6f 73 74 66 69 6c | 65 5b 31 33 32 5d 3b 09 |.hostfil|e[132];.|
|000016e0| 09 2f 2a 20 68 6f 73 74 | 20 76 65 72 73 69 6f 6e |./* host| version|
|000016f0| 20 6f 66 20 66 72 6f 6d | 66 69 6c 65 20 2a 2f 0d | of from|file */.|
|00001700| 65 78 74 65 72 6e 20 63 | 68 61 72 09 74 6f 66 69 |extern c|har.tofi|
|00001710| 6c 65 5b 31 33 32 5d 3b | 0d 65 78 74 65 72 6e 20 |le[132];|.extern |
|00001720| 63 68 61 72 09 73 74 61 | 74 65 3b 20 20 20 20 20 |char.sta|te; |
|00001730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|00001740| 70 72 65 73 65 6e 74 20 | 73 74 61 74 65 20 2a 2f |present |state */|
|00001750| 0d 65 78 74 65 72 6e 20 | 69 6e 74 09 66 70 3b 20 |.extern |int.fp; |
|00001760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001770| 20 20 20 20 2f 2a 20 63 | 75 72 72 65 6e 74 20 64 | /* c|urrent d|
|00001780| 69 73 6b 20 66 69 6c 65 | 20 70 74 72 20 2a 2f 0d |isk file| ptr */.|
|00001790| 65 78 74 65 72 6e 20 69 | 6e 74 09 73 69 7a 65 3b |extern i|nt.size;|
|000017a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017b0| 20 20 20 2f 2a 20 6e 62 | 79 74 65 73 20 69 6e 20 | /* nb|ytes in |
|000017c0| 62 75 66 66 20 2a 2f 0d | 65 78 74 65 72 6e 20 69 |buff */.|extern i|
|000017d0| 6e 74 20 20 75 73 65 48 | 61 72 64 77 61 72 65 46 |nt useH|ardwareF|
|000017e0| 6c 6f 77 43 6f 6e 74 72 | 6f 6c 3b 0d 65 78 74 65 |lowContr|ol;.exte|
|000017f0| 72 6e 20 46 49 4c 45 09 | 2a 66 73 79 73 3b 0d 65 |rn FILE.|*fsys;.e|
|00001800| 78 74 65 72 6e 20 63 68 | 61 72 09 52 6d 74 6e 61 |xtern ch|ar.Rmtna|
|00001810| 6d 65 5b 32 30 5d 3b 0d | 65 78 74 65 72 6e 20 63 |me[20];.|extern c|
|00001820| 68 61 72 09 72 6d 74 6e | 61 6d 65 5b 32 30 5d 3b |har.rmtn|ame[20];|
|00001830| 0d 65 78 74 65 72 6e 20 | 63 68 61 72 20 67 6f 74 |.extern |char got|
|00001840| 6e 61 6d 65 5b 32 30 5d | 3b 0d 65 78 74 65 72 6e |name[20]|;.extern|
|00001850| 20 63 68 61 72 20 67 6f | 74 69 74 66 72 6f 6d 5b | char go|titfrom[|
|00001860| 42 55 46 53 49 5a 5d 3b | 0d 65 78 74 65 72 6e 20 |BUFSIZ];|.extern |
|00001870| 63 68 61 72 20 67 6f 74 | 66 72 6f 6d 75 73 65 72 |char got|fromuser|
|00001880| 5b 42 55 46 53 49 5a 5d | 3b 0d 65 78 74 65 72 6e |[BUFSIZ]|;.extern|
|00001890| 20 63 68 61 72 20 63 61 | 6c 6c 63 61 75 73 65 5b | char ca|llcause[|
|000018a0| 36 34 5d 3b 0d 65 78 74 | 65 72 6e 20 63 68 61 72 |64];.ext|ern char|
|000018b0| 09 2a 63 63 74 69 6d 65 | 3b 0d 65 78 74 65 72 6e |.*cctime|;.extern|
|000018c0| 20 63 68 61 72 09 70 72 | 6f 74 6f 5b 35 5d 3b 0d | char.pr|oto[5];.|
|000018d0| 65 78 74 65 72 6e 20 74 | 69 6d 65 5f 74 20 72 75 |extern t|ime_t ru|
|000018e0| 6e 53 74 61 72 74 53 65 | 63 73 3b 0d 65 78 74 65 |nStartSe|cs;.exte|
|000018f0| 72 6e 20 69 6e 74 09 09 | 73 65 74 74 69 6e 67 73 |rn int..|settings|
|00001900| 46 69 6c 65 52 65 66 4e | 75 6d 3b 0d 65 78 74 65 |FileRefN|um;.exte|
|00001910| 72 6e 20 69 6e 74 09 66 | 61 69 6c 75 72 65 43 6f |rn int.f|ailureCo|
|00001920| 75 6e 74 3b 0d 65 78 74 | 65 72 6e 20 43 6f 6e 6e |unt;.ext|ern Conn|
|00001930| 65 63 74 69 6f 6e 48 61 | 6e 64 6c 65 72 20 2a 63 |ectionHa|ndler *c|
|00001940| 75 72 72 65 6e 74 43 6f | 6e 6e 65 63 74 69 6f 6e |urrentCo|nnection|
|00001950| 3b 0d 65 78 74 65 72 6e | 20 6c 6f 6e 67 20 69 6e |;.extern| long in|
|00001960| 74 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 4d 61 6e 61 |t connec|tionMana|
|00001970| 67 65 72 47 65 73 74 61 | 6c 74 3b 0d 0d 0d 65 78 |gerGesta|lt;...ex|
|00001980| 74 65 72 6e 20 63 68 61 | 72 20 73 79 73 6c 69 6e |tern cha|r syslin|
|00001990| 65 5b 42 55 46 53 49 5a | 2a 32 5d 3b 0d 65 78 74 |e[BUFSIZ|*2];.ext|
|000019a0| 65 72 6e 20 63 68 61 72 | 20 73 5f 73 79 73 74 65 |ern char| s_syste|
|000019b0| 6d 73 5b 36 34 5d 3b 0d | 65 78 74 65 72 6e 20 63 |ms[64];.|extern c|
|000019c0| 68 61 72 20 73 5f 6c 6f | 67 66 69 6c 65 5b 36 34 |har s_lo|gfile[64|
|000019d0| 5d 3b 0d 65 78 74 65 72 | 6e 20 63 68 61 72 20 73 |];.exter|n char s|
|000019e0| 5f 73 79 73 6c 6f 67 5b | 36 34 5d 3b 0d 65 78 74 |_syslog[|64];.ext|
|000019f0| 65 72 6e 20 63 68 61 72 | 20 73 5f 73 63 68 65 64 |ern char| s_sched|
|00001a00| 75 6c 65 5b 36 34 5d 3b | 0d 65 78 74 65 72 6e 20 |ule[64];|.extern |
|00001a10| 63 68 61 72 20 73 5f 73 | 74 61 74 66 69 6c 65 5b |char s_s|tatfile[|
|00001a20| 36 34 5d 3b 0d 65 78 74 | 65 72 6e 20 63 68 61 72 |64];.ext|ern char|
|00001a30| 20 2a 66 6c 64 73 5b 4e | 46 4c 44 53 5d 3b 0d 65 | *flds[N|FLDS];.e|
|00001a40| 78 74 65 72 6e 20 69 6e | 74 20 20 6b 66 6c 64 73 |xtern in|t kflds|
|00001a50| 3b 0d 0d 65 78 74 65 72 | 6e 20 69 6e 74 09 64 65 |;..exter|n int.de|
|00001a60| 62 75 67 6c 65 76 65 6c | 3b 09 09 2f 2a 20 64 65 |buglevel|;../* de|
|00001a70| 62 75 67 67 69 6e 67 20 | 66 6c 61 67 20 2a 2f 0d |bugging |flag */.|
|00001a80| 65 78 74 65 72 6e 20 75 | 6e 73 69 67 6e 65 64 20 |extern u|nsigned |
|00001a90| 69 6e 74 09 63 68 65 63 | 6b 73 75 6d 28 29 3b 0d |int.chec|ksum();.|
|00001aa0| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 7a 7a 7a 28 |extern v|oid zzz(|
|00001ab0| 69 6e 74 20 73 65 63 73 | 29 3b 0d 65 78 74 65 72 |int secs|);.exter|
|00001ac0| 6e 20 63 68 61 72 20 2a | 69 6e 64 65 78 28 29 3b |n char *|index();|
|00001ad0| 0d 65 78 74 65 72 6e 20 | 63 68 61 72 20 2a 72 69 |.extern |char *ri|
|00001ae0| 6e 64 65 78 28 29 3b 0d | 0d 65 78 74 65 72 6e 09 |ndex();.|.extern.|
|00001af0| 63 68 61 72 20 2a 63 75 | 72 64 69 72 3b 0d 0d 23 |char *cu|rdir;..#|
|00001b00| 69 66 64 65 66 20 55 70 | 67 72 61 64 65 0d 65 78 |ifdef Up|grade.ex|
|00001b10| 74 65 72 6e 20 6c 6f 6e | 67 20 69 6e 74 20 73 79 |tern lon|g int sy|
|00001b20| 73 74 69 6d 65 6f 75 74 | 3b 0d 23 65 6e 64 69 66 |stimeout|;.#endif|
|00001b30| 20 55 70 67 72 61 64 65 | 0d 0d 65 78 74 65 72 6e | Upgrade|..extern|
|00001b40| 20 73 74 72 75 63 74 20 | 48 6f 73 74 53 74 61 74 | struct |HostStat|
|00001b50| 73 20 72 65 6d 6f 74 65 | 5f 73 74 61 74 73 3b 0d |s remote|_stats;.|
|00001b60| 65 78 74 65 72 6e 20 73 | 74 61 74 75 73 5f 72 65 |extern s|tatus_re|
|00001b70| 63 6f 72 64 20 4c 61 73 | 74 3b 0d 0d 00 00 00 00 |cord Las|t;......|
|00001b80| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001b90| 42 6f 7a 6f 41 50 50 4c | 01 00 00 00 00 00 00 00 |BozoAPPL|........|
|00001ba0| df 80 01 00 0b 01 42 6f | 7a 6f 47 49 46 66 01 00 |......Bo|zoGIFf..|
|00001bb0| 05 64 63 70 2e 68 02 00 | 00 00 50 61 72 74 53 49 |.dcp.h..|..PartSI|
|00001bc0| 54 78 00 00 00 00 00 00 | 00 00 00 00 cb 2b 00 00 |Tx......|.....+..|
|00001bd0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 aa 9d 4e 9a 00 00 | 00 00 00 00 01 ac 42 6f |....N...|......Bo|
|00001c00| 7a 6f 54 45 58 54 01 00 | 00 00 00 00 00 00 e4 80 |zoTEXT..|........|
|00001c10| 01 00 0b 01 42 6f 7a 6f | 70 61 75 6c ff 00 00 00 |....Bozo|paul....|
|00001c20| 00 00 00 00 e5 80 01 00 | 0b 01 43 45 74 62 44 41 |........|..CEtbDA|
|00001c30| 54 41 01 00 00 00 00 00 | 00 00 1b 80 01 00 0b 01 |TA......|........|
|00001c40| 43 45 74 62 44 41 54 41 | 02 00 00 00 00 00 00 00 |CEtbDATA|........|
|00001c50| 20 c0 02 00 0b 01 43 45 | 74 62 44 41 54 41 03 00 | .....CE|tbDATA..|
|00001c60| 00 00 00 00 00 00 1c c0 | 04 00 0b 01 43 45 74 62 |........|....CEtb|
|00001c70| 44 41 54 41 04 00 00 00 | 00 00 00 00 1c 80 00 40 |DATA....|.......@|
|00001c80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 06 | 00 04 00 72 00 14 01 bb |........|...r....|
|00001cb0| 02 85 00 72 00 14 01 bb | 02 85 a9 1d 76 85 00 00 |...r....|....v...|
|00001cc0| 00 81 00 00 00 87 00 00 | 1a c5 01 00 00 00 00 1e |........|........|
|00001cd0| 00 72 00 14 01 bb 02 85 | 00 72 00 14 01 bb 02 85 |.r......|.r......|
|00001ce0| 00 00 1a c5 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 3b |.....n..|.n...>.;|
|00001d00| 3d c4 19 b6 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |=.......|.>..MPSR|
|00001d10| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 03 f0 ff ff 00 00 00 4c | 00 3d 95 28 00 00 00 00 |.......L|.=.(....|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+